package com.mathassistant.client.event.exercise;

import com.google.gwt.event.shared.GwtEvent;

public class ExerciseCorrectAnswerEvent extends GwtEvent<ExerciseCorrectAnswerEventHandler> {

	public static final Type<ExerciseCorrectAnswerEventHandler> TYPE = new Type<ExerciseCorrectAnswerEventHandler>();

	int exNumber;
	int exCount;
	public int getExNumber()
	{
		return exNumber;		
	}
	public int getExCount()
	{
		return exCount;
	}
	public ExerciseCorrectAnswerEvent(int exNumber, int exCount) {
		this.exCount = exCount;
		this.exNumber = exNumber;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ExerciseCorrectAnswerEventHandler> getAssociatedType() {
		// TODO Auto-generated method stub
		return TYPE;
	}

	@Override
	protected void dispatch(ExerciseCorrectAnswerEventHandler handler) {
		// TODO Auto-generated method stub
		handler.onExerciseCorrectAnswer(this);
	}

}
